<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动和定位对行内元素的影响</title>
    <style type="text/css">
        span{
            /* width: 200px;
            height: 200px;
            float: left;
            background-color: red; */
            position: fixed;
            background-color: red;
            width: 200px;
            height: 200px;
        }
    </style>
</head>
<body>
    <span>我是一个行内元素</span>
</body>
</html>